﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication3
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string nameForm = Request.Form["TextBox1"];
            string password = Request.Form["TextBox2"];

            Response.Write($"我是Post方法,你的账户：{nameForm}，密码：{password}"+ "<br/><br/><br/>");
            
            string name = Request.Params["name"];
            string pass = Request.Params["age"];
            Response.Write($"我是Get方法,你的账户：{name}，密码：{pass}");
        }
    }
}